file_name=$1
file_size=$2
create_icon_name_pre="$(echo $file_name | cut -d '.' -f1)"
create_icon_name_suf="$(echo $file_name | cut -d '.' -f2)"
convert $file_name -resize ${file_size}x${file_size} ${create_icon_name_pre}_icon_${file_size}x${file_size}.${create_icon_name_suf}